<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>CSS grid布局</title>
    <style>
        body {
            display: grid;
            grid-template-columns: 200px 1fr 300px;
        }

        header {
            grid-row: 1;
            
            height: 100px;
            grid-column: 1/5;
            background-color: antiquewhite;
        }

        footer {
            height: 100px;
            grid-row: 3;
            grid-column: 1/5;
            background-color: antiquewhite;
        }

        .left {
            grid-row: 2;
            height: 600px;
            background-color: burlywood;
        }

        .right {
            grid-row: 2;
            height: 600px;
            background-color: burlywood;
        }

        .middle {
            grid-row: 2;
            height: 600px;
            background-color: #b0f9c2;
        }
    </style>
</head>

<body>
  <header>header</header>
  <div class="left">left</div>
  <div class="middle">middle</div>
  <div class="right">right</div>
  <footer>footer</footer>
</body>

</html>